package com.ponhu.ea2.goodsCenter.provider.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ponhu.ea2.goodsCenter.provider.config.DBSourceConfig;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author luyu
 * @create 2021-09-13 17:15
 *
 */
@DS(DBSourceConfig.OMS_DB)
@Mapper
public interface GoodsPriceForAppMapper {
    /**
     * 根据时间查询同行价
     */
    BigDecimal getTradePrice(String mon,String quality,String series, String brandName);

    /**
     * 查询价格趋势
     * @param mon
     * @param quality
     * @param series
     * @return
     */
    List<Map<String,String>> getPriceTrend(String mon, String quality, String series, String brandName);
}